<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<h2>编辑公告信息</h2>
<form th:object="${affiche}" action="/affiche/edit">
    编号：<input type="text" name="id" th:value="*{id}" readonly="readonly">
    公告内容：<input type="text" name="message" th:value="*{message}">
    公告时间：<input type="text" name="date" th:value="*{#dates.format(date,'yyyy-MM-dd')}" readonly="readonly">
    <input type="submit" value="修改">
</form>

</body>
</html>